<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<s:include value="/WEB-INF/content/common/header.jsp" />

<div class="row well">
	<h4>SME Details</h4>



	<s:form action="viewEditSme" role="form" id="viewForm"
		cssClass="form-horizontal col-sm-6" namespace="/customer"
		enctype="multipart/form-data" theme="bootstrap">

		<%-- <s:textfield label="Id" name="sme.id" /> --%>

		<s:textfield label="Name" name="sme.name" value="%{sme.name}"
			readonly="true" />

		<s:textarea label="Address" rows="2" name="sme.address"
			value="%{sme.address}" readonly="true" />

		<s:textfield label="Telephone" name="sme.telephone"
			value="%{sme.telephone}" readonly="true" />

		<s:textfield label="Email" name="sme.email" value="%{sme.email}"
			readonly="true" />

		<s:textfield label="Fax" name="sme.fax" value="%{sme.fax}"
			readonly="true" />

		<s:textfield label="SME Type" value="%{sme.type}" readonly="true" />


		

		<s:url action="viewEditSme" var="editSmeDetails" namespace="/customer">
			<s:param name="id" value="%{id}" />
		</s:url>

		<sj:a href="%{editSmeDetails}" cssClass="btn btn-success btn-small"
			targets="targetDiv" role="button">Edit</sj:a>


		<s:url action="deleteSme" var="urlDeleteSme" namespace="/customer">
			<s:param name="id" value="%{id}" />
		</s:url>

		<sj:a href="%{urlDeleteSme}" cssClass="btn btn-danger btn-small "
			role="button" targets="targetDiv">Delete</sj:a>
	</s:form>


</div>




<s:include value="/WEB-INF/content/common/footer.jsp" />